﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="Twittit.Web.Register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Bienvenue sur Twittit</title>
    <link href="Styles/main.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/Scripts/jquery.js" ></script>
    <script type="text/javascript" src="/Scripts/layout.js" ></script>
</head>
<body>
    <form id="form1" runat="server">
		<div id="header">
			<div id="in">
				<span class="title"><a href="/">Twittit</a></span>
				<ul>
					<li><a href="/">Login</a></li>
                    <li><a href="/">S'enregistrer</a></li>
				</ul>
			</div>
		</div>
		<div id="wrapper">

			<div id="register">
                
				<span class="hometext"><img src="http://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/Product_Help/fr_FR/PUBLIC_USERS/IL_NumberSign.png"> Créez un compte sur Twittit</span>
                <asp:Label CssClass="servererror" runat="server" ID="RegisterErrorLabel" ></asp:Label> 
				<table>
					
					<tr><td>Nom et prénom</td><td><asp:TextBox ID="NameTextbox" runat="server" ></asp:TextBox></td></tr>
                    <tr><td colspan="2" class="error"><asp:RequiredFieldValidator ID="NameRequiredFieldValidator" runat="server" ControlToValidate="NameTextbox"> Le nom et prénom sont obligatoires. *</asp:RequiredFieldValidator></td></tr>
            
                    <tr><td>Pseudo souhaité</td><td><asp:TextBox ID="LoginTextbox" runat="server" ></asp:TextBox></td></tr>
                    <tr><td colspan="2" class="error">
            <asp:CustomValidator ID="CustomValidator1" runat=server
            controltovalidate="LoginTextbox"
            errormessage="Twittit déjà pris."
            OnServerValidationFunction="CheckTwittit" /><asp:RequiredFieldValidator ID="TwittitRequiredFieldValidator" runat="server" ControlToValidate="LoginTextbox"> Le pseudo est obligatoire. *</asp:RequiredFieldValidator></td></tr>

                    <tr><td>Adresse mail</td><td><asp:TextBox ID="EmailTextbox" runat="server" ></asp:TextBox></td></tr>
                    <tr><td colspan="2" class="error"><asp:RegularExpressionValidator ID="valEmailAddress"
ControlToValidate="EmailTextbox"	ValidationExpression=".*@.*\..*" ErrorMessage="Adresse électronique non valide." 
Display="Dynamic" EnableClientScript="true" Runat="server"/>
<asp:RequiredFieldValidator ID="EmailRequiredFieldValidator" runat="server" ControlToValidate="EmailTextbox"> L'adresse est obligatoire. *</asp:RequiredFieldValidator></td></tr>

					<tr><td>Mot de passe</td><td><asp:TextBox  TextMode="Password" ID="PasswordTextbox" runat="server" Text="j'aime les chats" ></asp:TextBox></td></tr>
                    <tr><td colspan="2" class="error"><asp:RequiredFieldValidator ID="PasswordRequiredFieldValidator" runat="server" ControlToValidate="PasswordTextbox"> Le mot de passe est obligatoire. *</asp:RequiredFieldValidator></td></tr>

                    <tr><td>Confirmation</td><td><asp:TextBox  TextMode="Password" ID="PasswordTextboxConfirm" runat="server" Text="j'aime les chats" ></asp:TextBox></td></tr>
                    <tr><td colspan="2" class="error"><asp:RequiredFieldValidator ID="PasswordConfirmRequiredFieldValidator" runat="server" ControlToValidate="PasswordTextboxConfirm"> Le mot de passe est obligatoire. *</asp:RequiredFieldValidator></td></tr>


					<tr><td colspan="1">
                        <asp:Button ID="registersubmit" runat="server" 
                            Text="Créer un compte" OnClick="registersubmit_Click" /></td></tr>
				</table>
			</div>
		</div>
		<div id="footer">
			<div id="in">
				Twittit, copyright appli-mal-imit&eacute;e.com
			</div>
		</div>
    </form>
</body>
</html>
